Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add task solution #4021

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add task solution #4021

wants to merge 2 commits into from

Conversation

osidanych
Copy link

  • DEMO LINK
  • TEST REPORT LINK
  • Changing 'month-lengh' and 'start-day' modifier in the code element reflects in changing calendar layout
  • Each day has no modifiers, only class (eg. calendar__day)
  • All Typical Mistakes from BEM lesson theory are checked.
  • Code follows all the Code Style Rules ❗️

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Thank you for your hard work on this project! 😊 There are a few critical issues that need to be addressed before we can approve your pull request:

  1. SCSS File Naming: The SCSS file should be named main.scss as per the task requirements. Please rename index.scss to main.scss.

  2. BEM Modifiers: Ensure that the BEM modifiers for start-day and month-length are implemented correctly and that changing these modifiers reflects in the calendar layout as expected.

  3. Checklist Verification: Verify that each day has no modifiers, only a class (e.g., calendar__day), to ensure compliance with the checklist.

  4. Code Duplication: There's a redundant block of code in your SCSS file that duplicates the logic found in lines 69-74. Removing this will help avoid unnecessary duplication and potential confusion.

Once these issues are resolved, your code will be in great shape! Keep up the great work, and feel free to reach out if you have any questions or need further assistance. 🚀

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

Comment on lines 63 to 66
@each $day, $i in $days {
.calendar--start-day-#{$day} .calendar__day:first-child {
margin-left: calc(#{$i} * $cell-size + #{$i * $gap});
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block of code is redundant because it duplicates the logic found in lines 69-74. You should remove this block to avoid unnecessary duplication and potential confusion.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job on addressing the previous review comments! 🎉 Your SCSS file is now correctly named main.scss, and the BEM modifiers for start-day and month-length are implemented effectively using @each and @for. The code is clean and concise, with no redundant blocks. However, there's a minor issue with the HTML file still linking to styles/index.scss instead of styles/main.scss. Please update this link to ensure the correct SCSS file is used.

This decision to approve is made to help you move forward with your learning journey. Remember to review the comments to improve your code further. Addressing these issues will enhance the functionality and appearance of your calendar. Keep up the great work, and continue learning from these experiences! 🚀

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Comment on lines +16 to +48
<div class="calendar calendar--start-day-sun calendar--month-length-31">
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
</div>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the BEM modifiers for start-day and month-length are correctly implemented and that changing these modifiers reflects in the calendar layout as expected. This is crucial for maintaining the intended functionality and appearance of the calendar.

Comment on lines +57 to +61
@for $i from 28 through 31 {
.calendar--month-length-#{$i} .calendar__day:nth-child(n + #{$i + 1}) {
display: none;
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the BEM modifiers for month-length are correctly implemented and that changing these modifiers reflects in the calendar layout as expected. This is crucial for maintaining the intended functionality and appearance of the calendar.

Comment on lines +63 to +67
@each $day, $i in $days {
.calendar--start-day-#{$day} .calendar__day:first-child {
margin-left: calc(#{$i} * $cell-size + #{$i * $gap});
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the BEM modifiers for start-day are correctly implemented and that changing these modifiers reflects in the calendar layout as expected. This is crucial for maintaining the intended functionality and appearance of the calendar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants